package com.xxh.myapp.msg;

public enum  Message {
    NO_USER("用户不存在",100),
    ERR0R_CODE("密码错误",101),
    SAME_USER("用户已经存在",102),
    SUCCESS_LOGIN("登录成功",200),
    SUCCESS_REGISTER("注册成功",200),
    SUCCESS_CHOOSE_COURSE("选课成功",300),
    SUCCESS_DROP_COURSE("退课成功",300),
    CANT_DROP("退课失败，你没有选这门课程",302),
    MAX_COURSE_NUM("课程人数已满",301);

    private  String msg;
    private  int code;

    Message(String msg, int i) {
        this.msg=msg;
        this.code=i;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
